﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

  <Style TargetType="{x:Type Controls:FilePicker}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Controls:FilePicker}">
          <Grid Name="PART_RootGrid" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal">
              <Controls:TextBox x:Name="PART_txtPath" Width="{TemplateBinding WidthPath}"/>
              <Controls:Button Content="{DynamicResource Infra.Controls.Label.Buscar}" x:Name="PART_btSearch_Text" Width="{TemplateBinding WidthButton}" Margin="5,0,0,0"/>
              <Controls:Button x:Name="PART_btSearch_Icon" Icon="IconButtonNew" VerticalAlignment="Top" Visibility="Collapsed" Margin="5,0,0,0"/>
            </StackPanel>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
</ResourceDictionary>